home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mighty Morphin Power Rangers Screensaver
/
Mighty Morphin Power Rangers Screensaver.iso
/
pc
/
setup.mst
< prev
next >
Wrap
Text File
|
1995-11-14
|
26KB
|
813 lines
'**************************************************************************
'* MSSetup Toolkit Sample 1
'**************************************************************************
'$DEFINE DEBUG ''Define for script development/debugging
'$INCLUDE 'setupapi.inc'
'$INCLUDE 'msdetect.inc'
''Dialog ID's
CONST WELCOME = 100
CONST ASKQUIT = 200
CONST DESTPATH = 300
CONST EXITFAILURE = 400
CONST EXITQUIT = 600
CONST EXITSUCCESS = 700
CONST APPHELP = 900
CONST MODULES = 2500
CONST BADPATH = 6400
''Bitmap ID
CONST LOGO = 1
GLOBAL OLDMODULE1$
GLOBAL OLDMODULE2$
GLOBAL OLDMODULE3$
GLOBAL OLDMODULE4$
GLOBAL OLDMODULE5$
GLOBAL OLDMODULE6$
GLOBAL OLDMODULE7$
GLOBAL OLDMODULE8$
GLOBAL MODULE1$
GLOBAL MODULE2$
GLOBAL MODULE3$
GLOBAL MODULE4$
GLOBAL MODULE5$
GLOBAL MODULE6$
GLOBAL MODULE7$
GLOBAL MODULE8$
GLOBAL MODULE1SIZE
GLOBAL MODULE2SIZE
GLOBAL MODULE3SIZE
GLOBAL MODULE4SIZE
GLOBAL MODULE5SIZE
GLOBAL MODULE6SIZE
GLOBAL MODULE7SIZE
GLOBAL MODULE8SIZE
GLOBAL DEST$ ''Default destination directory.
GLOBAL WINDIR$
GLOBAL TEST$
DECLARE SUB Install
DECLARE SUB DeleteFiles (Module%)
DECLARE FUNCTION MakePath (szDir$, szFile$) AS STRING
INIT:
CUIDLL$ = "mscuistf.dll" ''Custom user interface dll
HELPPROC$ = "FHelpDlgProc" ''Help dialog procedure
OLDMODULE1$ = "OFF"
OLDMODULE2$ = "OFF"
OLDMODULE3$ = "OFF"
OLDMODULE4$ = "OFF"
OLDMODULE5$ = "OFF"
OLDMODULE6$ = "OFF"
OLDMODULE7$ = "OFF"
OLDMODULE8$ = "OFF"
MODULE1SIZE = 5240258
MODULE2SIZE = 5240794
MODULE3SIZE = 4978546
MODULE4SIZE = 4932518
MODULE5SIZE = 4932518
MODULE6SIZE = 4932514
MODULE7SIZE = 4932495
MODULE8SIZE = 4931236
SetBitmap CUIDLL$, LOGO
SetTitle "Power Rangers Setup"
szInf$ = GetSymbolValue("STF_SRCINFPATH")
IF szInf$ = "" THEN
szInf$ = GetSymbolValue("STF_CWDDIR") + "SETUP.INF"
END IF
ReadInfFile szInf$
'$IFDEF DEBUG
i% = SetSizeCheckMode(scmOnIgnore) '' could use scmOff; def = scmOnFatal
WinDrive$ = MID$(GetWindowsDir, 1, 1)
IF IsDriveValid(WinDrive$) = 0 THEN
i% = DoMsgBox("Windows drive ('"+WinDrive$+"') is not a valid drive.", "DEBUG", MB_TASKMODAL+MB_ICONHAND+MB_OK)
GOTO QUIT
END IF
'$ENDIF ''DEBUG
WELCOME:
sz$ = UIStartDlg(CUIDLL$, WELCOME, "FInfoDlgProc", APPHELP, HELPPROC$)
IF sz$ = "CONTINUE" THEN
UIPop 1
ELSE
GOSUB ASKQUIT
GOTO WELCOME
END IF
' GOTO DOINSTALL
GOTO GETPATH
GETPATH:
DEST$ = GetIniKeyString (GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Directory")
IF DEST$ = "" THEN
DEST$ = "C:\SABAN"
END IF
SetSymbolValue "EditTextIn", DEST$
SetSymbolValue "EditFocus", "END"
GETPATHL1:
sz$ = UIStartDlg(CUIDLL$, DESTPATH, "FEditDlgProc", APPHELP, HELPPROC$)
DEST$ = GetSymbolValue("EditTextOut")
IF sz$ = "CONTINUE" THEN
IF IsDirWritable(DEST$) = 0 THEN
GOSUB BADPATH
GOTO GETPATHL1
END IF
UIPop 1
CreateIniKeyValue GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Directory", DEST$, cmoOverwrite
ELSEIF sz$ = "REACTIVATE" THEN
GOTO GETPATHL1
ELSEIF sz$ = "BACK" THEN
UIPop 1
GOTO WELCOME
ELSE
GOSUB ASKQUIT
GOTO GETPATH
END IF
GETMODULES:
OLDMODULE1$ = GetIniKeyString (GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module1")
OLDMODULE2$ = GetIniKeyString (GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module2")
OLDMODULE3$ = GetIniKeyString (GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module3")
OLDMODULE4$ = GetIniKeyString (GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module4")
OLDMODULE5$ = GetIniKeyString (GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module5")
OLDMODULE6$ = GetIniKeyString (GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module6")
OLDMODULE7$ = GetIniKeyString (GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module7")
OLDMODULE8$ = GetIniKeyString (GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module8")
IF OLDMODULE1$ = "" THEN
OLDMODULE1$ = "OFF"
END IF
IF OLDMODULE2$ = "" THEN
OLDMODULE2$ = "OFF"
END IF
IF OLDMODULE3$ = "" THEN
OLDMODULE3$ = "OFF"
END IF
IF OLDMODULE4$ = "" THEN
OLDMODULE4$ = "OFF"
END IF
IF OLDMODULE5$ = "" THEN
OLDMODULE5$ = "OFF"
END IF
IF OLDMODULE6$ = "" THEN
OLDMODULE6$ = "OFF"
END IF
IF OLDMODULE7$ = "" THEN
OLDMODULE7$ = "OFF"
END IF
IF OLDMODULE8$ = "" THEN
OLDMODULE8$ = "OFF"
END IF
GETMODULES1:
CHECKSTATES$ = "CheckItemsIn"
IF OLDMODULE1$ = "ON" THEN
AddListItem CHECKSTATES$, "ON"
ELSE
AddListItem CHECKSTATES$, "OFF"
END IF
IF OLDMODULE2$ = "ON" THEN
AddListItem CHECKSTATES$, "ON"
ELSE
AddListItem CHECKSTATES$, "OFF"
END IF
IF OLDMODULE3$ = "ON" THEN
AddListItem CHECKSTATES$, "ON"
ELSE
AddListItem CHECKSTATES$, "OFF"
END IF
IF OLDMODULE4$ = "ON" THEN
AddListItem CHECKSTATES$, "ON"
ELSE
AddListItem CHECKSTATES$, "OFF"
END IF
IF OLDMODULE5$ = "ON" THEN
AddListItem CHECKSTATES$, "ON"
ELSE
AddListItem CHECKSTATES$, "OFF"
END IF
IF OLDMODULE6$ = "ON" THEN
AddListItem CHECKSTATES$, "ON"
ELSE
AddListItem CHECKSTATES$, "OFF"
END IF
IF OLDMODULE7$ = "ON" THEN
AddListItem CHECKSTATES$, "ON"
ELSE
AddListItem CHECKSTATES$, "OFF"
END IF
IF OLDMODULE8$ = "ON" THEN
AddListItem CHECKSTATES$, "ON"
ELSE
AddListItem CHECKSTATES$, "OFF"
END IF
sz$ = UIStartDlg(CUIDLL$, MODULES, "FCheckDlgProc", APPHELP, HELPPROC$)
IF sz$ = "CONTINUE" THEN
UIPop 1
ELSEIF sz$ = "REACTIVATE" THEN
GOTO GETPATHL1
ELSEIF sz$ = "BACK" THEN
UIPop 1
GOTO GETPATH
ELSE
GOSUB ASKQUIT
GOTO GETMODULES
END IF
CHECKSTATES$ = "CheckItemsOut"
MODULE1$ = GetListItem(CHECKSTATES$, 1)
CreateIniKeyValue GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module1", MODULE1$, cmoOverwrite
MODULE2$ = GetListItem(CHECKSTATES$, 2)
CreateIniKeyValue GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module2", MODULE2$, cmoOverwrite
MODULE3$ = GetListItem(CHECKSTATES$, 3)
CreateIniKeyValue GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module3", MODULE3$, cmoOverwrite
MODULE4$ = GetListItem(CHECKSTATES$, 4)
CreateIniKeyValue GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module4", MODULE4$, cmoOverwrite
MODULE5$ = GetListItem(CHECKSTATES$, 5)
CreateIniKeyValue GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module5", MODULE5$, cmoOverwrite
MODULE6$ = GetListItem(CHECKSTATES$, 6)
CreateIniKeyValue GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module6", MODULE6$, cmoOverwrite
MODULE7$ = GetListItem(CHECKSTATES$, 7)
CreateIniKeyValue GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module7", MODULE7$, cmoOverwrite
MODULE8$ = GetListItem(CHECKSTATES$, 8)
CreateIniKeyValue GetWindowsDir + "CONTROL.INI", "ScreenSaver.Power Rangers", "Module8", MODULE8$, cmoOverwrite
TotalBytes = 0
bSomeWereChecked = 0
bSomeAreChecked = 0
' First delete the modules which are no longer selected
IF OLDMODULE1$ <> "OFF" AND MODULE1$ = "OFF" THEN
DeleteFiles(1)
bSomeWereChecked = 1
ELSEIF OLDMODULE1$ = "OFF" AND MODULE1$ = "ON" THEN
TotalBytes = 5240258
bSomeAreChecked = 1
END IF
IF OLDMODULE2$ <> "OFF" AND MODULE2$ = "OFF" THEN
DeleteFiles(2)
bSomeWereChecked = 1
ELSEIF OLDMODULE2$ = "OFF" AND MODULE2$ = "ON" THEN
TotalBytes = TotalBytes + 5240794
bSomeAreChecked = 1
END IF
IF OLDMODULE3$ <> "OFF" AND MODULE3$ = "OFF" THEN
DeleteFiles(3)
bSomeWereChecked = 1
ELSEIF OLDMODULE3$ = "OFF" AND MODULE3$ = "ON" THEN
TotalBytes = TotalBytes + 4978546
bSomeAreChecked = 1
END IF
IF OLDMODULE4$ <> "OFF" AND MODULE4$ = "OFF" THEN
DeleteFiles(4)
bSomeWereChecked = 1
ELSEIF OLDMODULE4$ = "OFF" AND MODULE4$ = "ON" THEN
TotalBytes = TotalBytes + 4932518
bSomeAreChecked = 1
END IF
IF OLDMODULE5$ <> "OFF" AND MODULE5$ = "OFF" THEN
DeleteFiles(5)
bSomeWereChecked = 1
ELSEIF OLDMODULE5$ = "OFF" AND MODULE5$ = "ON" THEN
TotalBytes = TotalBytes + 4932518
bSomeAreChecked = 1
END IF
IF OLDMODULE6$ <> "OFF" AND MODULE6$ = "OFF" THEN
DeleteFiles(6)
bSomeWereChecked = 1
ELSEIF OLDMODULE6$ = "OFF" AND MODULE6$ = "ON" THEN
TotalBytes = TotalBytes + 4932514
bSomeAreChecked = 1
END IF
IF OLDMODULE7$ <> "OFF" AND MODULE7$ = "OFF" THEN
DeleteFiles(7)
bSomeWereChecked = 1
ELSEIF OLDMODULE7$ = "OFF" AND MODULE7$ = "ON" THEN
TotalBytes = TotalBytes + 4932495
bSomeAreChecked = 1
END IF
IF OLDMODULE8$ <> "OFF" AND MODULE8$ = "OFF" THEN
DeleteFiles(8)
bSomeWereChecked = 1
ELSEIF OLDMODULE8$ = "OFF" AND MODULE8$ = "ON" THEN
TotalBytes = TotalBytes + 4931236
bSomeAreChecked = 1
END IF
IF (bSomeWereChecked = 1 AND bSomeAreChecked = 0) THEN
Msg$ = "All files for the Mighty Morphin Power Rangers Screen Saver "
Msg$ = Msg$ + "will be removed from your hard drive."
i% = DoMsgBox(Msg$, "Installing...", MB_OK)
RemoveFile GetWindowsDir() + "default.ssi", cmoForce
RemoveFile GetWindowsDir() + "scrscene.scr", cmoForce
' RemoveFile DEST$, cmoForce ' Does NOT work
' RemoveDir DEST$, cmoNone ' Does NOT work
GOTO QUIT
ELSEIF bSomeAreChecked = 0 THEN
GOTO QUIT
END IF
FreeSpace = GetFreeSpaceForDrive(DEST$)
IF TotalBytes > FreeSpace THEN
i% = DoMsgBox("You do not have enough memory on your harddrive. Please reselect the modules", "Out of Disk Space", MB_OK)
OLDMODULE1$ = MODULE1$
OLDMODULE2$ = MODULE2$
OLDMODULE3$ = MODULE3$
OLDMODULE4$ = MODULE4$
OLDMODULE5$ = MODULE5$
OLDMODULE6$ = MODULE6$
OLDMODULE7$ = MODULE7$
OLDMODULE8$ = MODULE8$
SetSymbolValue CHECKSTATES$ , ""
GOTO GETMODULES1
END IF
DOINSTALL:
Install
QUIT:
ON ERROR GOTO ERRQUIT
IF ERR = 0 THEN
dlg% = EXITSUCCESS
ELSEIF ERR = STFQUIT THEN
dlg% = EXITQUIT
ELSE
dlg% = EXITFAILURE
END IF
QUITL1:
sz$ = UIStartDlg(CUIDLL$, dlg%, "FInfo0DlgProc", 0, "")
IF sz$ = "REACTIVATE" THEN
GOTO QUITL1
END IF
UIPop 1
END
ERRQUIT:
i% = DoMsgBox("Setup sources were corrupted. Call product support.", "Setup Message", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END
BADPATH:
sz$ = UIStartDlg(CUIDLL$, BADPATH, "FInfo0DlgProc", 0, "")
IF sz$ = "REACTIVATE" THEN
GOTO BADPATH
END IF
UIPop 1
RETURN
ASKQUIT:
sz$ = UIStartDlg(CUIDLL$, ASKQUIT, "FQuitDlgProc", 0, "")
IF sz$ = "EXIT" THEN
UIPopAll
ERROR STFQUIT
ELSEIF sz$ = "REACTIVATE" THEN
GOTO ASKQUIT
ELSE
UIPop 1
END IF
RETURN
'**
'** Purpose:
'** Builds the copy list and performs all installation operations.
'** Arguments:
'** none.
'** Returns:
'** none.
'*************************************************************************
SUB Install STATIC
SrcDir$ = GetSymbolValue("STF_SRCDIR")
WINDIR$ = GetWindowsDir
' Create the Destination Diretctory
CreateDir DEST$, cmoNone
'' OpenLogFile MakePath(DEST$, "LOGFILE.OUT"), 0
'' WriteToLogFile ""
'' WriteToLogFile " User chose as destination directory: '" + DEST$ + "'"
'' WriteToLogFile " User chose option: '" + OPTCUR$ + "'"
'' WriteToLogFile ""
'' WriteToLogFile "May have had to create the directory: " + DEST$
'' WriteToLogFile ""
src$ = MakePath(SrcDir$,"IMAGES")
ini$ = MakePath(WINDIR$,"CONTROL.INI")
AddSectionFilesToCopyList "Files", SrcDir$, WINDIR$
'
' Now lets copy the files over that we need
'
IF OLDMODULE1$ <> "ON" AND MODULE1$ = "ON" THEN
AddSectionFilesToCopyList "Module1", Src$, DEST$
END IF
IF OLDMODULE2$ <> "ON" AND MODULE2$ = "ON" THEN
AddSectionFilesToCopyList "Module2", Src$, DEST$
END IF
IF OLDMODULE3$ <> "ON" AND MODULE3$ = "ON" THEN
AddSectionFilesToCopyList "Module3", Src$, DEST$
END IF
IF OLDMODULE4$ <> "ON" AND MODULE4$ = "ON" THEN
AddSectionFilesToCopyList "Module4", Src$, DEST$
END IF
IF OLDMODULE5$ <> "ON" AND MODULE5$ = "ON" THEN
AddSectionFilesToCopyList "Module5", Src$, DEST$
END IF
IF OLDMODULE6$ <> "ON" AND MODULE6$ = "ON" THEN
AddSectionFilesToCopyList "Module6", Src$, DEST$
END IF
IF OLDMODULE7$ <> "ON" AND MODULE7$ = "ON" THEN
AddSectionFilesToCopyList "Module7", Src$, DEST$
END IF
IF OLDMODULE8$ <> "ON" AND MODULE8$ = "ON" THEN
AddSectionFilesToCopyList "Module8", Src$, DEST$
END IF
CopyFilesInCopyList
CreateIniKeyValue ini$, "ScreenSaver.Power Rangers", "Directory", DEST$ , cmoNone
CreateIniKeyValue ini$, "ScreenSaver.Power Rangers", "Speed", "10", cmoNone
CreateIniKeyValue ini$, "ScreenSaver.Power Rangers", "Pause", "2", cmoNone
CreateIniKeyValue ini$, "ScreenSaver.Power Rangers", "PWProtected", "0", cmoNone
ini$ = MakePath(WINDIR$,"SYSTEM.INI")
CreateIniKeyValue ini$, "boot", "SCRNSAVE.EXE", MakePath(WINDIR$,"SCRSCENE.SCR"), cmoNone
'' CloseLogFile
END SUB
'**
'** Purpose:
'** Appends a file name to the end of a directory path,
'** inserting a backslash character as needed.
'** Arguments:
'** szDir$ - full directory path (with optional ending "\")
'** szFile$ - filename to append to directory
'** Returns:
'** Resulting fully qualified path name.
'*************************************************************************
FUNCTION MakePath (szDir$, szFile$) STATIC AS STRING
IF szDir$ = "" THEN
MakePath = szFile$
ELSEIF szFile$ = "" THEN
MakePath = szDir$
ELSEIF MID$(szDir$, LEN(szDir$), 1) = "\" THEN
MakePath = szDir$ + szFile$
ELSE
MakePath = szDir$ + "\" + szFile$
END IF
END FUNCTION
SUB DeleteFiles (Module%) STATIC
'
' Deletes the files associated with a certain module
'
IF Module% = 1 THEN
FileName$ = MakePath(DEST$, "1.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "9.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "17.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "25.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "33.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "41.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "49.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "57.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "65.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "73.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "81.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "89.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "97.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "105.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "113.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "121.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "129.SSI")
RemoveFile FileName$, cmoForce
ELSEIF Module% = 2 THEN
FileName$ = MakePath(DEST$, "2.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "10.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "18.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "26.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "34.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "42.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "50.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "58.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "66.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "74.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "82.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "90.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "98.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "106.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "114.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "122.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "130.SSI")
RemoveFile FileName$, cmoForce
ELSEIF Module% = 3 THEN
FileName$ = MakePath(DEST$, "3.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "11.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "19.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "27.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "35.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "43.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "51.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "59.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "67.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "75.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "83.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "91.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "99.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "107.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "115.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "123.SSI")
RemoveFile FileName$, cmoForce
ELSEIF Module% = 4 THEN
FileName$ = MakePath(DEST$, "4.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "12.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "20.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "28.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "36.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "44.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "52.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "60.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "68.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "76.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "84.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "92.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "100.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "108.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "116.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "124.SSI")
RemoveFile FileName$, cmoForce
ELSEIF Module% = 5 THEN
FileName$ = MakePath(DEST$, "5.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "13.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "21.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "29.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "37.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "45.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "53.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "61.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "69.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "77.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "85.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "93.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "101.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "109.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "117.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "125.SSI")
RemoveFile FileName$, cmoForce
ELSEIF Module% = 6 THEN
FileName$ = MakePath(DEST$, "6.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "14.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "22.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "30.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "38.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "46.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "54.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "62.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "70.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "78.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "86.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "94.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "102.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "110.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "118.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "126.SSI")
RemoveFile FileName$, cmoForce
ELSEIF Module% = 7 THEN
FileName$ = MakePath(DEST$, "7.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "15.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "23.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "31.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "39.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "47.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "55.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "63.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "71.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "79.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "87.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "95.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "103.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "111.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "119.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "127.SSI")
RemoveFile FileName$, cmoForce
ELSEIF Module% = 8 THEN
FileName$ = MakePath(DEST$, "8.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "16.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "24.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "32.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "40.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "48.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "56.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "64.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "72.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "80.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "88.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "96.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "104.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "112.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "120.SSI")
RemoveFile FileName$, cmoForce
FileName$ = MakePath(DEST$, "128.SSI")
RemoveFile FileName$, cmoForce
END IF
END SUB